package com.zimin.cloud.system.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zimin.mapper.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 角色菜单关联表
 * </p>
 *
 * @author zimin
 * @since 2021-12-30 11:05
 */
@Getter
@Setter
@TableName("sys_role_menu")
@ApiModel(value = "RoleMenu对象", description = "角色菜单关联表")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class RoleMenu extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("角色ID")
    @TableField("role_id")
    private String roleId;

    @ApiModelProperty("菜单ID")
    @TableField("menu_id")
    private String menuId;

    @ApiModelProperty("状态(1 正常 0 停用)")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("创建人")
    @TableField("create_by")
    private String createBy;


}
